<?php
class Pageley_Domain_BasicNamespace implements Pageley_Domain_Namespace {
    private $uri;
    private $alias;
    private $schema;

    public function __construct($uri, $alias, $schema) {
        $this->uri = $uri;
        $this->alias = $alias;
        $this->schema = $schema;
    }

    public function getUri() {
        return $this->uri;
    }

    public function getAlias() {
        return $this->alias;
    }
    
    public function getSchema() {
    	return $this->schema;
    }

    public function __toString() {
        return $this->alias;
    }

    public function equals($namespace) {
        if($namespace === null) {
            return false;
        }
        if(!($namespace instanceof Pageley_Domain_BasicNamespace)) {
            return false;
        }
        return $this->uri == $namespace->getUri();
    }

}